﻿@model IRIS.Models.StaticPage

@{
    ViewBag.Title = "Edit";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@if (!ViewData.ModelState.IsValid)
{
    <div class="error">
        @Html.ValidationSummary(false)
    </div>
}
@using (Html.BeginForm()) {
    
    <fieldset>
        <legend>Breyta undirsíðu</legend>

        <div class="editor-label">
            Titill
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
        </div>

        <div class="editor-label">
            Innihald
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Text)
        </div>

        @Html.HiddenFor(model => model.Id)

        <p>
            <input type="submit" value="Breyta síðu" />
        </p>
    </fieldset>
}

